package dataservice.coursedataservice;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import po.*;

public interface LessonDataService extends Remote {
	public void init() throws RemoteException;

	public void finish() throws RemoteException;

	public boolean insert(LessonPO po) throws RemoteException;

	public boolean delete(String lessonId, String term) throws RemoteException;

	public boolean update(LessonPO po) throws RemoteException;

	public LessonPO find(String lessonId, String term) throws RemoteException;

	public ArrayList<LessonPO> find(String teacherId) throws RemoteException;

	public ArrayList<LessonPO> find(Institute institute, String term)
			throws RemoteException;

	public ArrayList<LessonPO> find(CourseClassification courseClassification,
			String term) throws RemoteException;

	public ArrayList<LessonPO> find(CourseClassification courseClassification,
			String term, Institute institute) throws RemoteException;

	public ArrayList<LessonPO> find(CourseClassification courseClassification,
			String term, Institute institute, Grade grade) throws RemoteException;

}
